/**
 * Copyright © 2020 易久批信息技术有限公司. All rights reserved.
 */
package com.dysm.factory.method;

import com.dysm.factory.mode.Car;

/**
 * 工厂方法模式
 * @author xiay
 * @since 2020/12/3 10:09 下午
 */
public class FactoryMethodClient {

    public static void main(String[] args) {
        Car car1 = new AudiFactory().createCar();
        car1.show();
        Car car2 = new BenzFactory().createCar();
        car2.show();
    }
}
